class CreateComments < ActiveRecord::Migration[5.2]
  def change
    create_table :comments do |t|
      t.integer :spu_id
      t.integer :user_id
      t.integer :order_item_id
      t.integer :score, default: 1
      t.text :content
      t.integer :review, default: 0
      t.boolean :hide_user, default: false
      

      t.timestamps
    end
  end
end
